package com.shenbh.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by 123430134@qq.com on 2018/2/11.
 */
@FeignClient(value="service-hi",fallback = HelloServiceHystrix.class)
public interface HelloService {


    @RequestMapping(value="/hi",method = RequestMethod.GET)
    String sayHi(@RequestParam("name") String name);

}
